package com.yg.edu.lock;

import java.util.concurrent.ConcurrentLinkedQueue;

/**
 * @description:
 * @author: gonghongwei
 * @create: 2021-10-25 11:49
 */
public class MyLock {
	/**
	 * 当前加锁状态,记录加锁的次数
	 */
	private volatile int state = 0;
	/**
	 * 当前持有锁的线程
	 */
	private Thread lockHolder;

	private ConcurrentLinkedQueue<Thread> queue = new ConcurrentLinkedQueue<>();

}
